

#include "serialtx.h"
#include <QDebug>

#if 0
void SerialTxThread::run() 
{
    qDebug() << "txthread";

    for (auto iter = txque->begin(); 
        iter != txque->end(); iter++)
    {
        // serial->write((*iter));
        qDebug() << "serial->write";
        serial->write("123456");
    }
    txque->clear();
}

bool SerialTxThread::AddNewTxMassage(QByteArray msg)
{
    txque->push_back(msg);
    if (isRunning()) {
        return true;
    }
    start();
    return true;
}
#endif 